<div class="row">
     <div class="col-xs-12 col-xs-12">
          <div class="widget radius-bordered">
              <div class="widget-header bg-blue">
				<i class="widget-icon fa fa-arrow-down"></i>
				<span class="widget-caption">权限组设置</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="dispose">
						<i class="fa fa-times"></i>
					</a>
				</div>
			</div>
              <div class="widget-body">
                   <form id="YstechForm" action="" method="post" class="form-horizontal"
                                                  data-bv-message=""
                                                  data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
                                                  data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
                                                  data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
                  <input type="hidden" name="id" value="{$cache.id}">
                  <div class="form-title">
                        <a href="{:U('Cms/Group/groupList/')}" class="btn btn-primary" data-loader="Ystech-loader" data-loadername="职位管理">
							<i class="fa fa-mail-reply"></i>返回
						</a>
                   </div>
                   
                   <div class="form-group">
                        <label class="col-lg-2 control-label">名称<sup>*</sup></label>
                        <div class="col-lg-4">
                        <input type="text" class="form-control" name="name" placeholder="必填"
                                                               data-bv-notempty="true"
                                                               data-bv-notempty-message="不能为空" value="{$cache.name}">
                        </div>
                   </div>
                   
                   <!--  <div class="form-group">
                      <label class="col-lg-2 control-label" for="short">职位编号<sup>*</sup></label>
                      <div class="col-lg-4">
                        <input class="form-control" type="text" id="duty_no" name="duty_no" check="require" msg="请输入职位编号" value="{$cache.duty_no}">
                      </div>
                   </div> -->

                  <!--  <div class="form-group">
                      <label class="col-lg-2 control-label" for="short">简称<sup>*</sup></label>
                      <div class="col-lg-4">
                        <input class="form-control" type="text" id="short" name="short" check="require" msg="请输入简称" value="{$cache.short}">
                      </div>
                   </div>
                    -->
                  <!--  <div class="form-group">
                      <label class="col-lg-2 control-label" for="dept_name">上级部门<sup>*</sup></label>
                      <div class="col-lg-4">
                        <div class="input-group">
                          <input name="dept_name" class="form-control" id="dept_name" type="text" readonly="readonly" msg="请选择上级部门" check="require" />
                          <input name="pid" id="pid" type="hidden" msg="请选择上级部门" check="require" />
                          <span class="input-group-btn">
                            <button class="btn btn-sm btn-primary" onclick="select_pid()" type="button">
                              选择
                            </button> </span>
                        </div>
                      </div>
                   </div> -->
                   
                  <!--  <div class="form-group">
                      <label class="col-lg-2 control-label" for="dept_grade_id">部门级别<sup>*</sup></label>
                      <div class="col-lg-4">
                        <select name="dept_grade_id" id="dept_grade_id" class="form-control" msg="请选择部门级别" check="require">
                          <option>选择部门级别</option>
                          {:fill_option($dept_grade_list)}
                        </select>
                      </div>
                   </div> -->

                   <div class="form-group">
                      <label class="col-lg-2 control-label" for="is_del">状态*：</label>
                      <div class="col-lg-4">
                        <select   name="is_del" id="is_del" class="form-control">
                          <option value='0' <if condition="$cache.is_del eq 0">selected</if>>启用</option>
                          <option value='1' <if condition="$cache.is_del eq 1">selected</if>>禁用</option>
                        </select>
                      </div>
                   </div>
                   <div class="form-group">
                      <label class="col-lg-2 control-label" for="remark" >其他：</label>
                      <div class="col-lg-4" >
                        <textarea class="form-control" name="remark" id="remark" rows="5" class="col-xs-12" >{$cache.remark}</textarea>
                      </div>
                   </div>
                <div class="form-group">
                             <div class="col-lg-offset-2 col-lg-4">
                             <button class="btn btn-primary btn-lg" type="submit">保存</button>&nbsp;&nbsp;&nbsp;&nbsp;
                             <button class="btn btn-palegreen btn-lg" type="reset">重填</button>
                        </div>
                 </div>
              </form>
            </div>
        </div>
	</div>
     
</div>
<!--面包屑导航封装-->
<div id="tmpbread" style="display: none;">{$breadhtml}</div>
<script type="text/javascript">
	setBread($('#tmpbread').html());
</script>
<!--/面包屑导航封装-->

<!--表单验证与提交封装-->
<script type="text/javascript">
	$('#YstechForm').bootstrapValidator({
		submitHandler: function (validator, form, submitButton) {
			
			if(!$('input[name="name"]').val()){
				$.Ystech.alert('danger','请输入部门名称！');
				return false;
			}
			
           	var tourl="{:U('Cms/Group/groupSet')}";
			var data=$('#YstechForm').serialize();
			$.Ystech.ajax('post',tourl,data,null);
			return false;
        },
	});
</script>
<!--/表单验证与提交封装-->

